/*
 * LiquidBounce Hacked Client
 * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
 * https://github.com/CCBlueX/LiquidBounce/
 */
package net.ccbluex.liquidbounce.features.module.modules.exploit

import net.ccbluex.liquidbounce.event.EventTarget
import net.ccbluex.liquidbounce.event.UpdateEvent
import net.ccbluex.liquidbounce.features.module.Module
import net.ccbluex.liquidbounce.features.module.ModuleCategory
import net.ccbluex.liquidbounce.features.module.ModuleInfo

@ModuleInfo(name = "GodMode", description = "GodMode Exploit for AAC", category = ModuleCategory.EXPLOIT)
class GodMode : Module() {

    @EventTarget
    fun onUpdate(event: UpdateEvent) {
        val thePlayer = mc.thePlayer ?: return

        mc.netHandler.addToSendQueue(classProvider.createCPacketPlayerPosLook(thePlayer.posX,
                thePlayer.posY - 0.1, thePlayer.posZ, thePlayer.rotationYaw, thePlayer.rotationPitch, true))
    }

}